package com.sykj.springboot.test.designMode.strategyPattern;

public class main {



    /**
     * @author lining
     * @date 2022/5/30 10:50
     * @description 策略模式   高内聚低耦合的特点
     **/
    public static void main(String[] args) {
        Context context = new Context(new OpenDoor());
        context.operate();

        Context context2 = new Context(new SendMoney());
        context2.operate();

        Context context3 = new Context(new SendBeautiful());
        context3.operate();
    }


}
